package org.kumas.mybatissimple.session;

import org.kumas.mybatissimple.binding.MapperMethod;

/*************************************************
 * TODO_Kumas
 *  @author KumasZhang
 *  DateTime： 2011-02-13 9:47
 *  Description： 
 **/
public interface SqlSession {
    /**
     * Retrieve a single row mapped from the statement key.
     * @param <T> the returned object type
     * @param mapperMethod mapperd method
     * @param parameter bind parameter
     * @return Mapped object
     */
    <T> T selectOne(MapperMethod mapperMethod, Object parameter);

    public <T> T getMapper(Class<T> type);

    public  Configuration getConfiguration();
}
